package com.pocket.insight.service;

import com.pocket.insight.controller.dto.DatasetResultDto;
import com.pocket.insight.controller.dto.SqlParam;
import com.pocket.insight.entity.Dataset;

import java.util.List;

/**
 * 描述：
 *
 * @author shuize
 * @create 2024/12/4
 */
public interface DatasetService {

    Dataset getDatasetWithAuth(Dataset dataset);

    Dataset getById(Long appId, Long datasetId);

    DatasetResultDto previewDataAndSchema(Dataset dataset, SqlParam sqlParam);

    void batchFetchDatasetsInfo(Long appId, List<Long> datasetIds, Boolean isSecondTime);

}
